package kr.co.exight.onApp;

import java.util.ArrayList;

import library.ActionClass;
import library.ExPreferenceManager;
import library.JsonParser;
import library.Variables;
import struct.CompanyInfo;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TabWidget;

public class ActivityTabOncard extends ExTabActivity {
	
	public static TabWidget tabWidget;

	public static int mode;
	ExPreferenceManager p;
	public static final int CARD_MODE = 0;
	public static final int TIME_MODE = 1;
	public static final int TIME_PUSH_MODE = 2;

	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tab_oncard);
		
		
		mode = getIntent().getIntExtra("MODE", 0);
		
		p = new ExPreferenceManager(this);
		
		tabWidget = getTabWidget();
		
		if(mode == 0 ){
			addTab(new Intent(ActivityTabOncard.this, ActivityCardMap.class), R.anim.oncard_tab1, "1");
			addTab(new Intent(ActivityTabOncard.this, ActivityCardList.class), R.anim.oncard_tab2, "2");
			addTab(new Intent(ActivityTabOncard.this, ActivityCard.class), R.anim.oncard_tab3, "3");		
			
		} else if (mode == 1){
			addTab(new Intent(ActivityTabOncard.this, ActivityTimeMap.class), R.anim.oncard_tab1, "1");
			addTab(new Intent(ActivityTabOncard.this, ActivityTimeList.class), R.anim.oncard_tab2, "2");
			addTab(new Intent(ActivityTabOncard.this, ActivityCard.class), R.anim.oncard_tab3, "3");		
		} else if (mode == TIME_PUSH_MODE){
			addTab(new Intent(ActivityTabOncard.this, ActivityTimeMap.class), R.anim.oncard_tab1, "1");
			addTab(new Intent(ActivityTabOncard.this, ActivityTimeList.class), R.anim.oncard_tab2, "2");
			addTab(new Intent(ActivityTabOncard.this, ActivityCard.class), R.anim.oncard_tab3, "3");
		}
				
		
	}
	public void switchTab(int tab){
        getTabHost().setCurrentTab(tab);
	}
	
}




